@extends('Admin.layouts.common')

@section('content')
    <div class="container">
        <div id="order_tag"></div>
        <div class="table-responsive">
            <table class="table">
                <caption>银行卡限额列表</caption>
                <thead>
                    <tr>
                        <th><a href="javascript:void(0);" data-order="id">id</a></th>
                        <th><a href="javascript:void(0);" data-order="bankname">银行名称</a></th>
                        <th><a href="javascript:void(0);" data-order="bankcode">银行code</a></th>
                        <th><a href="javascript:void(0);" data-order="min_recharge_amount">最小充值</a></th>
                        <th><a href="javascript:void(0);" data-order="once">单笔</a></th>
                        <th><a href="javascript:void(0);" data-order="day">单日</a></th>
                        <th><a href="javascript:void(0);" data-order="month">每月</a></th>
                        <th><a href="javascript:void(0);" data-order="describe">简介</a></th>
                        <th><a href="javascript:void(0);" data-order="status">状态</a></th>
                         <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    @forelse($list->items() as $item)
                        <tr <?php if($item->status==1):?>class="danger"<?php endif;?>>
                            <td>{{ $item->id }}</td>
                            <td>{{ $item->bankname }}</td>
                            <td>{{ $item->bankcode }}</td>
                            <td>{{ $item->min_recharge_amount }}</td>
                            <td>{{ $item->once }}</td>
                            <td>{{ $item->day }}</td>
                            <td>{{ $item->month }}</td>
                            <td>{{ $item->describe }}</td>
                            <td><a href="/config/change_bank_status/{{ $item->id }}?status={{$item->status}}">{{ $item->status==1?'启用':'禁用'}}</a></td>
                            <td>
                                <a href="/config/edit_bank_limit/{{ $item->id }}">编辑</a>
                            </td> 
                        </tr>
                    @empty
                        <tr><td class="text-center" colspan="8">没有数据</td></tr>
                    @endforelse
                </tbody>
            </table>
            <div class="text-center">
                {{ $list->links() }}
            </div>
        </div>

    </div>
@endsection